package com.mall.controller;

import com.mall.pojo.Result;
import com.mall.service.bannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//轮播图
@RestController
public class bannerController {
    @Autowired
    private bannerService bannerService;
   @RequestMapping("/home/banner")
    public Result findAll() {
       return Result.success(bannerService.getBanner());
   }
}
